import Layout from "../page/Layout";
import NotFound from "../page/NotFound";
import Month from "../page/Month";
import Year from "../page/Year";
import New from "../page/New";
import { createBrowserRouter, createHashRouter } from "react-router-dom";

const router = createBrowserRouter([
  {
    path: "/",
    element: <Layout />,
    children: [
      { path: "month", element: <Month /> },
      { path: "year", element: <Year /> },
    ],
  },
  { path: "/new", element: <New /> },
  {
    path: "*",
    element: <NotFound />,
  },
]);
export default router;
